<!DOCTYPE html>
<html>
  <head>
    <title>移动设备蓝牙名称汇总</title>
    <link rel="stylesheet" type="text/css" href="/static/jqcloud/jqcloud.css" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
    <script type="text/javascript" src="/static/jqcloud/jqcloud-1.0.4.js"></script>
    <script type="text/javascript">
      var word_list = [
        // {text: "Lorem", weight: 13, link: "https://github.com/DukeLeNoir/jQCloud"},
        // {text: "Ipsum", weight: 10.5, html: {title: "My Title", "class": "custom-class"}, link: {href: "http://jquery.com/", target: "_blank"}},
        {% for item in flask_data %}
           {text:"{{item.1}}",weight:{{item.4}},html:{title: "总记录数{{item.4}}"}},
        {% endfor %}
      ];
      $(function() {
        $("#my_favorite_latin_words").jQCloud(word_list);
      });
    </script>
  </head>
  <body>
    <h1 style="width: 800px; margin: 0 auto; text-align: center">蓝牙名称汇总</h1>
    <div id="my_favorite_latin_words" style="width: 800px; height: 600px; border: 1px solid #ccc; margin: 0 auto"></div>
  </body>
</html>
